package com.tanker.order.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tanker.order.dao.OrderDao;
import com.tanker.order.dao.po.Order;
import com.tanker.order.service.OrderService;

@Service
public class OrderServiceImpl implements OrderService{
	@Autowired
	private OrderDao orderDao;

	public void create(Order order) {
		Date createTime = new Date();
		order.setCreateTime(createTime);
		orderDao.insert(order);
	}
}
